using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace _Interface
{
    public interface IPlugin
    {
        PContainer ResultContainer {get;}
        void Init();
        string Hint { get; }
        void UserCommand(string s);
        string Name { get; }
        string Permission { get; }
        string Author { get; }
        string Description { get; }

    }

    public class PContainer
    {
        private ArrayList _Container = new ArrayList();

        public PContainer()
        { 
            
        }

        public void Add(string message)
        {
            this._Container.Add(message);
        }

        public string Read()
        {
            string message = null;
            if (this._Container.Count>0)
            if (this._Container[0]!=null)
            {
                message = (string)this._Container[0];
                _Container.Remove(message);
                
            }
            return message;
        }
    }


}
